package com.example.administrator.smarthome_androids;

import java.util.List;

/**
 * Created by Administrator on 2017/6/20 0020.
 */
public class RoomBean {


    /**
     * category : 26126
     * intentType : custom
     * query : 打开主卧的灯。
     * rc : 0
     * nlis : true
     * service : DEVICE.open
     * uuid : atn001516af@un32440ca3fdeb6f2601
     * vendor : DEVICE
     * version : 2.0
     * semantic : [{"intent":"open","score":0.5714285373687744,"slots":[{"begin":2,"end":4,"name":"masterhome","normValue":"","value":"主卧"}]}]
     * moreResults : [{"operation":"SET","rc":0,"semantic":{"slots":{"attr":"开关","attrType":"String","attrValue":"开","location":{"room":"主卧","type":"LOC_HOUSE"}}},"service":"light_smartHome","text":"打开主卧的灯。","uuid":"atn001516af@un32440ca3fdeb6f2601","used_state":{"state_key":"fg::light_smartHome::default::default","state":"default"},"answer":{"text":"已为您打开灯"},"dialog_stat":"dataInvalid"}]
     * sid : iat0e81417f@ch03d40ca3fde83d7400
     * text : 打开主卧的灯。
     */

    private String category;
    private String intentType;
    private String query;
    private int rc;
    private String nlis;
    private String service;
    private String uuid;
    private String vendor;
    private String version;
    private String sid;
    private String text;
    private List<SemanticBean> semantic;
    private List<MoreResultsBean> moreResults;

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getIntentType() {
        return intentType;
    }

    public void setIntentType(String intentType) {
        this.intentType = intentType;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public int getRc() {
        return rc;
    }

    public void setRc(int rc) {
        this.rc = rc;
    }

    public String getNlis() {
        return nlis;
    }

    public void setNlis(String nlis) {
        this.nlis = nlis;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getVendor() {
        return vendor;
    }

    public void setVendor(String vendor) {
        this.vendor = vendor;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public List<SemanticBean> getSemantic() {
        return semantic;
    }

    public void setSemantic(List<SemanticBean> semantic) {
        this.semantic = semantic;
    }

    public List<MoreResultsBean> getMoreResults() {
        return moreResults;
    }

    public void setMoreResults(List<MoreResultsBean> moreResults) {
        this.moreResults = moreResults;
    }

    public static class SemanticBean {
        /**
         * intent : open
         * score : 0.5714285373687744
         * slots : [{"begin":2,"end":4,"name":"masterhome","normValue":"","value":"主卧"}]
         */

        private String intent;
        private double score;
        private List<SlotsBean> slots;

        public String getIntent() {
            return intent;
        }

        public void setIntent(String intent) {
            this.intent = intent;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public List<SlotsBean> getSlots() {
            return slots;
        }

        public void setSlots(List<SlotsBean> slots) {
            this.slots = slots;
        }

        public static class SlotsBean {
            /**
             * begin : 2
             * end : 4
             * name : masterhome
             * normValue :
             * value : 主卧
             */

            private int begin;
            private int end;
            private String name;
            private String normValue;
            private String value;

            public int getBegin() {
                return begin;
            }

            public void setBegin(int begin) {
                this.begin = begin;
            }

            public int getEnd() {
                return end;
            }

            public void setEnd(int end) {
                this.end = end;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getNormValue() {
                return normValue;
            }

            public void setNormValue(String normValue) {
                this.normValue = normValue;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }
    }

    public static class MoreResultsBean {
        /**
         * operation : SET
         * rc : 0
         * semantic : {"slots":{"attr":"开关","attrType":"String","attrValue":"开","location":{"room":"主卧","type":"LOC_HOUSE"}}}
         * service : light_smartHome
         * text : 打开主卧的灯。
         * uuid : atn001516af@un32440ca3fdeb6f2601
         * used_state : {"state_key":"fg::light_smartHome::default::default","state":"default"}
         * answer : {"text":"已为您打开灯"}
         * dialog_stat : dataInvalid
         */

        private String operation;
        private int rc;
        private SemanticBeanX semantic;
        private String service;
        private String text;
        private String uuid;
        private UsedStateBean used_state;
        private AnswerBean answer;
        private String dialog_stat;

        public String getOperation() {
            return operation;
        }

        public void setOperation(String operation) {
            this.operation = operation;
        }

        public int getRc() {
            return rc;
        }

        public void setRc(int rc) {
            this.rc = rc;
        }

        public SemanticBeanX getSemantic() {
            return semantic;
        }

        public void setSemantic(SemanticBeanX semantic) {
            this.semantic = semantic;
        }

        public String getService() {
            return service;
        }

        public void setService(String service) {
            this.service = service;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getUuid() {
            return uuid;
        }

        public void setUuid(String uuid) {
            this.uuid = uuid;
        }

        public UsedStateBean getUsed_state() {
            return used_state;
        }

        public void setUsed_state(UsedStateBean used_state) {
            this.used_state = used_state;
        }

        public AnswerBean getAnswer() {
            return answer;
        }

        public void setAnswer(AnswerBean answer) {
            this.answer = answer;
        }

        public String getDialog_stat() {
            return dialog_stat;
        }

        public void setDialog_stat(String dialog_stat) {
            this.dialog_stat = dialog_stat;
        }

        public static class SemanticBeanX {
            /**
             * slots : {"attr":"开关","attrType":"String","attrValue":"开","location":{"room":"主卧","type":"LOC_HOUSE"}}
             */

            private SlotsBeanX slots;

            public SlotsBeanX getSlots() {
                return slots;
            }

            public void setSlots(SlotsBeanX slots) {
                this.slots = slots;
            }

            public static class SlotsBeanX {
                /**
                 * attr : 开关
                 * attrType : String
                 * attrValue : 开
                 * location : {"room":"主卧","type":"LOC_HOUSE"}
                 */

                private String attr;
                private String attrType;
                private String attrValue;
                private LocationBean location;

                public String getAttr() {
                    return attr;
                }

                public void setAttr(String attr) {
                    this.attr = attr;
                }

                public String getAttrType() {
                    return attrType;
                }

                public void setAttrType(String attrType) {
                    this.attrType = attrType;
                }

                public String getAttrValue() {
                    return attrValue;
                }

                public void setAttrValue(String attrValue) {
                    this.attrValue = attrValue;
                }

                public LocationBean getLocation() {
                    return location;
                }

                public void setLocation(LocationBean location) {
                    this.location = location;
                }

                public static class LocationBean {
                    /**
                     * room : 主卧
                     * type : LOC_HOUSE
                     */

                    private String room;
                    private String type;

                    public String getRoom() {
                        return room;
                    }

                    public void setRoom(String room) {
                        this.room = room;
                    }

                    public String getType() {
                        return type;
                    }

                    public void setType(String type) {
                        this.type = type;
                    }
                }
            }
        }

        public static class UsedStateBean {
            /**
             * state_key : fg::light_smartHome::default::default
             * state : default
             */

            private String state_key;
            private String state;

            public String getState_key() {
                return state_key;
            }

            public void setState_key(String state_key) {
                this.state_key = state_key;
            }

            public String getState() {
                return state;
            }

            public void setState(String state) {
                this.state = state;
            }
        }

        public static class AnswerBean {
            /**
             * text : 已为您打开灯
             */

            private String text;

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }
        }
    }
}
